package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 等级实体类
 */
@TableName("t_grade")
@ApiModel(value = "等级实体类")
public class GradeBean {
    /**编号**/
    @ApiModelProperty("编号")
    @TableId(value = "pk_gradeId",type = IdType.AUTO)
    private Integer id;
    /**等级名称**/
    @ApiModelProperty("等级名称")
    @TableField("g_name")
    private String name;
    /**等级内容**/
    @ApiModelProperty("等级内容")
    @TableField("g_content")
    private String content;

    public GradeBean() {
    }

    public GradeBean(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "GradeBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", content='" + content + '\'' +
                "}\n";
    }
}
